package com.xw.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * @Description: PostCode
 * @Author: ASUS
 * @Date: 2024/12/19 9:17
 * @Version: 1.0
 */


@Data
public class PostCode {
    private Integer id;
    @ApiModelProperty(value = "发布内容")
    @NotBlank(message = "发布内容不能为空!")
    private String content;
    @ApiModelProperty(value = "发布标题")
    @NotBlank(message = "发布标题不能为空!")
    private String title;
    @ApiModelProperty(value = "发布时间")
    private Date sendTime;
    @ApiModelProperty(value = "发布人ID")
    private Integer sendUserId;
    @ApiModelProperty(value = "发布人名称")
    private String sendUserName;
    @ApiModelProperty(value = "发布人头像")
    private String sendUserPic;
    @ApiModelProperty(value = "帖子类型")
    @NotBlank(message = "类型不能为空!")
    private String type;

}

